compare-render: Assert that no error has been set
authorTimm Bäder <mail@baedert.org>
Sat, 23 Feb 2019 06:57:12 +0000 (07:57 +0100)
committerTimm Bäder <mail@baedert.org>
Mon, 25 Feb 2019 07:37:06 +0000 (08:37 +0100)
Much better error message than just the one from the node != NULL
assertion in the next line.

testsuite/gsk/compare-render.c

index 01b26c9bf202ea7c4e057c46891fa1623a9f89fd..5081daac2300875d047f05e120ec1f117bb644d0 100644 (file)
@@ -104,6 +104,7 @@ main (int argc, char **argv)
     node = gsk_render_node_deserialize (bytes, &error);
     g_bytes_unref (bytes);
 
+    g_assert_no_error (error);
     g_assert (node != NULL);
   }